<h1>3. check before final submission</h1>

<p class="highlight">Please review your proposal, before submission.<br>you will be able to see the status of the review.</p>

<h3>Title:  <%=h @proposal.title %></h3>

<p>
  <b>Description:</b><br>
  <%=h @proposal.description %>
</p>
<hr>

<p>
  <b>Email:</b><br>
  <%=h @proposal.email %>
</p>



<table>
  <tr>
	<th></th>
    <th>Files</th>
    <th>Comment</th>

  </tr>

<% @documents.each do |document| %>
  <tr>
    <td></td>
    <td><%= link_to document.document_file_name, document.document.url %> <%= number_to_human_size(document.document_file_size) %></td>
    <td><%=h document.comment %></td>

  </tr>
  
<% end %>
</table>
  
<% form_for(@proposal) do |form| %>
<p class="highlight">	<%= form.check_box(:status, {}, "submitted", "new") %> Proposal is complete & correct<br>
<%= form.submit "Submit & Lock Proposal" %> | <%= link_to "go back", "/proposals/" + @proposal.id.to_s + "/documents/new" %></p>	

<% end %>
